package classesBasicas;

public class State {
	
	private String id;

	public State(String id){
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	@Override
	public boolean equals(Object obj) {
		
		if(obj instanceof State){
			return this.id.equals(((State)obj).getId());
		}
		else {
			return false;
		}
	}
	
	@Override
	public String toString() {
		return this.id;
	}
	
}
